package com.simple.simple_view.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.simple.simple_view.domain.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*
 *@description: 用户表数据库访问层
 *@author: hisen
 *@Time: 2023/10/26  16:25
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    User selectByUsername(String username);

    void incrementLikesByIds(List<Long>ids);

    void incrementLikesById(Long id);
    void decrementLikesById(Long id);
}
